ScxV6Object.TemplateID Method
Returns the object identifier of the template containing this object.
Remarks
Use TemplateID to obtain the object identifier of the template that contains this object. If this object is not part of a template, TemplateID returns zero.
The following example written in VB.NET writes the containing template ID of the point to the console.
Dim Svr As ScxV6DbClient.ScxV6Server
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server
Svr.Connect("MAIN", "", "")
Dim Obj As ScxV6DbClient.ScxV6Object
Obj = Svr.FindObject("Group.Point Template.Point")
Console.WriteLine("Template ID of point is {0}", Obj.TemplateID)
' Disconnect
Svr.Disconnect()
This produces the following output:
Template ID of point is 72725